package com.cwl.base.day02;

/**
 * @program: java_base
 * @description: 带标签的Break和Continue
 * @author: ChenWenLong
 * @create: 2019-11-06 14:11
 **/
public class TestLabelContinue {

    public static void main(String[] args) {
        // 打印101-150之间所有的质数
        outer: for (int i = 101; i < 150; i++) {
            for (int j = 2; j < i / 2; j++) {
                if (i % j == 0) {
                    continue outer;
                }
            }
            System.out.print(i + "  ");
        }
    }
}
